import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
let Login = () => import('../views/Login.vue')
let List = () => import('../views/List.vue')
let Info = () => import('../views/Info.vue')
let Card = () => import('../views/Card.vue')


Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/Home',
    name: 'Home',
    component: Home
  },
  {
    path: '/Login',
    name: 'Login',
    component: Login
  },
  {
    path: '/List',
    name: 'List',
    component: List
  },
  {
    path: '/Info',
    name: 'Info',
    component: Info
  },
  {
    path: '/Card',
    name: 'Card',
    component: Card
  }
]


const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
